home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 33 lines | [TEXT/GEOL] |
- Item 1766338 21-Oct-88 06:25
-
- From: D1430 HewLett Packard, Dev, Steve Henry
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: MACDTS Macintosh Developer Technical Supt.
-
- Sub: Default button woes
-
- I have done some more investigation on my problem of my dialogs in macApp 2.0b5
- not responding to the Return key and doing the default button's action. I have
- looked at DemoDailogs and its view resources and mine appear to be the same in
- all relevant aspects. The problem is that the fields fTargetID and fTarget are
- not being setup properly by NewTemplateWindow and FindSubView respectively. It
- happens in DemoeDialogs but not in mine. Below is code that I use in one place
- to make it happen as it should but I have several places that I use dialogs and
- do not want to have to do this in all of them.
-
- aWindow := NewTemplateWindow(vStartupView, NIL);
- aWindow.fTargetID := 'DLOG';
- aTestDialog := TTestDialog(aWindow.FindSubView('DLOG'));
- aWindow.fTarget := aTestDialog;
-
- I would like to get rid of the two lines setting up the fields and get the
- resource file right. What I am I doing wrong? It must be something very
- obvious because I've looked so hard to find it.
-
- Hal Hansen
- Hewlett Packard
-
-
-